<style>
    tr,th,td {
        text-align: center;
    }
</style>
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/OneReport/oneReportStep" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="${SYS_QUERY_NAME}"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <g:hiddenField name="stageId" value="${params.stageId}"/>
            <g:hiddenField name="startTime" value="${params.startTime}"/>
            <g:hiddenField name="endTime" value="${params.endTime}"/>
            <g:hiddenField name="params" value="${params.params}"/>
            <label>时间段：</label>
            <input type="text" name="startT" data-pattern="yyyy-MM-dd" size="12" value="${startT}" data-toggle="datepicker"
                   placeholder="订单开始日期">
            <input type="text" name="endT" data-pattern="yyyy-MM-dd" size="12" value="${endT}" data-toggle="datepicker"
                   placeholder="订单结束日期">&nbsp;
            <label>订单号：</label>
            <input type="text" name="docId" value="${docId}" size="15" placeholder="订单号"/>&nbsp;
            <label>箱号：</label>
            <input type="text" name="caseNum" value="${caseNum}" size="15" placeholder="箱号"/>&nbsp;
            <label>刻印号：</label>
            <input type="text" name="kyh" value="${kyh}" size="15" placeholder="刻印号"/>&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue"
                    onclick="javascript:bjuiExportExl('#pagerForm', '${request.getContextPath()}/Base/expExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出</button>
        </div>
    </form>
</div>

<div class="panel-body">
    <div style="mini-width:400px;height:450px;" id="cellGlassOutputDiv"></div>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${reportList.size() > 0}">
        <table id="data" data-toggle="tablefixed" data-width="300%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <th width="50">NO.</th>
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance != 'RN' && headInstance != 'CREATE_TIME'}">
                        <th><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
                <g:each in="${reportList}" status="i" var="dataInstance">
                    <tr>
                        <td>${dataInstance.RN}</td>
                        <g:each in="${tableHeadList}" status="j" var="headInstance">
                            <g:if test="${headInstance != 'RN'}">
                                <td>${dataInstance["${headInstance}"]}</td>
                            </g:if>
                        </g:each>
                    </tr>
                </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
<g:render template="../template/51pagination"/>